package com.hfkh;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class No_4 {
    public static void main(String[] args) {
        int ge,shi,bai,sum;
        for (int i =100;i<=1000;i++){
            ge = i%10;
            shi = i/10%10;
            bai = i/100;
            sum = ge*ge*ge+shi*shi*shi+bai*bai*bai;
            if (i==sum){
                System.out.println(sum);
            }
        }
    }
}
